home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gigarom 4
/
Mac Giga-ROM 4.0 - 1993.toast
/
FILES
/
HYP
/
E-G
/
GetPixel XFCN.cpt
/
GetPixel XFCN
/
background_2630.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
1KB
|
64 lines
-- background: 2630 from stack: in
-- bmap block id: 8916
-- flags: 4000
-- background id: 0
-- name: USA
-- part 2 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=156 top=38 right=159 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Search Maps
----- HyperTalk script -----
on mouseUp
get the clickloc
put item 1 of it into h
put item 2 of it into v
if GetPixel(h,v) is not true then
play boing
show card field "In the Map"
wait 360
hide card field "In the Map"
exit mouseup
end if
put empty into tempname
set lockscreen to true
put empty into bkgnd field "Region Name"
go next
set lockscreen to false
repeat (number of cards) - 1 times
if GetPixel(h,v) then
put the short name of this card into tempname
exit repeat
end if
go next
end repeat
set lockscreen to true
go first
put tempname into bkgnd field "Region Name"
set lockscreen to false
end mouseUp
-- part 3 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=155 top=164 right=189 bottom=342
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 6
-- text size: 18
-- style flags: 0
-- line height: 24
-- part name: Region Name